package com.ruoyi.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 应急处置卡
 *
 * @since 2023-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@TableName("prevention_contingency_dispose")
@ApiModel(value = "PreventionContingencyDispose对象", description = "应急处置卡")
public class PreventionContingencyDispose implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "附件ID集合")
    private String disposeFileId;

    @ApiModelProperty(value = "所属单元ID")
    private String affiliatedUnitId;

    @ApiModelProperty(value = "所属单元名称")
    private String affiliatedUnit;

    @ApiModelProperty(value = "岗位ID")
    private String jobId;

    @ApiModelProperty(value = "岗位名称")
    private String jobName;

    @ApiModelProperty(value = "发生场所")
    private String occurSite;

    @ApiModelProperty(value = "负责人ID")
    private String personId;

    @ApiModelProperty(value = "负责人名称")
    private String personName;

    @ApiModelProperty(value = "事故风险")
    private String accidentRisk;

    @ApiModelProperty(value = "事故特征")
    private String accidentCharacteristic;

    @ApiModelProperty(value = "危害描述")
    private String whDescription;

    @ApiModelProperty(value = "工艺说明")
    private String gyDescription;

    @ApiModelProperty(value = "步骤说明")
    private String bzDescription;

    @ApiModelProperty(value = "处置措施")
    private String treatmentMeasure;

    @ApiModelProperty(value = "注意事项")
    private String mattersNeedAttention;

    @ApiModelProperty(value = "内部应急电话")
    private String innerPhone;

    @ApiModelProperty(value = "外部应急电话")
    private String exteriorPhone;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 文件id
     */
    private Integer fileId;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件地址
     */
    private String fileUrl;

    private List<PreventionContingencyDisposeFile> contingencyDisposeFileList;
}
